package operation;

import book.Book;
import book.BookList;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: hp
 * Date: 2024-03-12
 * Time: 21:52
 */
public class ExtiOperation implements IOperation{
    @Override
    public void work(BookList bookList) {
        System.out.println("...退出图书...");
        int currentSize = bookList.getUseSize();
        for(int i = 0; i < currentSize; i++) {
           bookList.setBook(i,null);
        }

        System.exit(0);
    }
}
